The configuration your card requests - in this case, two memory spaces - is defined by the card's configuration space. At boot time, the Mac's Open Firmware (also called boot firmware) scans all PCI devices and constructs a Device Tree containing information about configured PCI devices. (Your card's memory space will be reassigned into available PCI address space at this time.) The Device Tree is the structure from which the Mac OS extracts the original information to create the device portion of the Name Registry. You'll need to obtain the assigned addresses for your card's memory spaces from the Name Registry.
Refer to the latest PCI DDK (Driver Developer Kit), and Designing PCI Cards
and Drivers for Power Macintosh Computers. Also, for code examples on how
to access and iterate the Name Registry, refer to the DisplayNameRegistry
sample on the DDK.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help